package com.xwj.service.Interface;

import com.github.pagehelper.PageInfo;
import com.xwj.entity.UserInfo;

import java.util.List;

/**
 * Created by thinkjoy on 2017/7/7.
 */
public interface RaUserService {
    PageInfo<UserInfo> findAllUserPage(int pageIndex, int pageSize);

    List<UserInfo> findAllUser();

    UserInfo findUserByAccountID(String accountID, String flag);

    UserInfo findPropertyByAccountID(String accountID);

    int updateByPersonData(UserInfo userInfo);

    int updatepwd(UserInfo userInfo);

    int addSingleUser(UserInfo userInfo);

    int addMulUser(List<UserInfo> userInfos);

    int delUserByAccountid(String accountID);

    int updateDelfalgByAccountid(String accountID, String flag);

    int updateRoleWhenRoleDelete(int roleId);

    List<UserInfo> findUserByRoleId(int roleId);
}
